import requests


def get_city_code():
    url = 'https://js.51jobcdn.com/in/js/2016/layer/area_array_c.js?20200818'
    r = requests.get(url)
    city_dic = eval(r.text.split('=')[1].split(';')[0])
    city_dic = {v: k for k, v in city_dic.items()}
    return city_dic